<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="名称" prop="zzName">
        <el-input
            v-model="queryParams.zzName"
            placeholder="请输入转债名称"
            clearable
            @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="代码" prop="zzCode">
        <el-input
            v-model="queryParams.zzCode"
            placeholder="请输入代码"
            clearable
            @keyup.enter="handleQuery"
        />
      </el-form-item>
      <!--      <el-form-item label="现价" prop="currentBondPricenew">-->
      <!--        <el-input-->
      <!--            v-model="queryParams.currentBondPricenew"-->
      <!--            placeholder="请输入现价"-->
      <!--            clearable-->
      <!--            @keyup.enter="handleQuery"-->
      <!--        />-->
      <!--      </el-form-item>-->
      <el-form-item label="涨跌" prop="zzZdf">
        <el-input
            v-model="queryParams.zzZdf"
            placeholder="请输入涨跌"
            clearable
            @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="正股代码" prop="stockCode">
        <el-input
            v-model="queryParams.stockCode"
            placeholder="请输入正股代码"
            clearable
            @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="正股名称" prop="stockName">
        <el-input
            v-model="queryParams.stockName"
            placeholder="请输入正股名称"
            clearable
            @keyup.enter="handleQuery"
        />
      </el-form-item>
      <!--      <el-form-item label="正股价" prop="stockPrice">-->
      <!--        <el-input-->
      <!--            v-model="queryParams.stockPrice"-->
      <!--            placeholder="请输入正股价"-->
      <!--            clearable-->
      <!--            @keyup.enter="handleQuery"-->
      <!--        />-->
      <!--      </el-form-item>-->
      <el-form-item label="正股涨跌" prop="stockZdf">
        <el-input
            v-model="queryParams.stockZdf"
            placeholder="请输入正股涨跌"
            clearable
            @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="正股PB" prop="pbvRatio">
        <el-input
            v-model="queryParams.pbvRatio"
            placeholder="请输入正股PB"
            clearable
            @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="转股价" prop="transferPrice">
        <el-input
            v-model="queryParams.transferPrice"
            placeholder="请输入转股价"
            clearable
            @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="转股价值" prop="transferValue">
        <el-input
            v-model="queryParams.transferValue"
            placeholder="请输入转股价值"
            clearable
            @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="溢价率" prop="transferPremiumRatio">
        <el-input
            v-model="queryParams.transferPremiumRatio"
            placeholder="请输入转股溢价率"
            clearable
            @keyup.enter="handleQuery"
        />
      </el-form-item>
      <!--      <el-form-item label="开始转股日" prop="transferDateF242">-->
      <!--        <el-date-picker clearable-->
      <!--                        v-model="queryParams.transferDateF242"-->
      <!--                        type="date"-->
      <!--                        value-format="YYYY-MM-DD"-->
      <!--                        placeholder="请选择开始转股日">-->
      <!--        </el-date-picker>-->
      <!--      </el-form-item>-->
      <!--      <el-form-item label="纯债溢价率" prop="zzRatio">-->
      <!--        <el-input-->
      <!--            v-model="queryParams.zzRatio"-->
      <!--            placeholder="请输入纯债溢价率"-->
      <!--            clearable-->
      <!--            @keyup.enter="handleQuery"-->
      <!--        />-->
      <!--      </el-form-item>-->
      <el-form-item label="纯债价值" prop="zzPurePriceF424F227">
        <el-input
            v-model="queryParams.zzPurePriceF424F227"
            placeholder="请输入纯债价值"
            clearable
            @keyup.enter="handleQuery"
        />
      </el-form-item>
      <!--      <el-form-item label="期限" prop="bondExpire">-->
      <!--        <el-input-->
      <!--            v-model="queryParams.bondExpire"-->
      <!--            placeholder="请输入期限"-->
      <!--            clearable-->
      <!--            @keyup.enter="handleQuery"-->
      <!--        />-->
      <!--      </el-form-item>-->
      <el-form-item label="票面利率" prop="newrateRefetence">
        <el-input
            v-model="queryParams.newrateRefetence"
            placeholder="请输入票面利率(当期)"
            clearable
            @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="评级" prop="rating">
        <el-input
            v-model="queryParams.rating"
            placeholder="请输入评级"
            clearable
            @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="配售额" prop="firstPerPreplacing">
        <el-input
            v-model="queryParams.firstPerPreplacing"
            placeholder="请输入每股配售额"
            clearable
            @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="发行亿" prop="actualIssueScale">
        <el-input
            v-model="queryParams.actualIssueScale"
            placeholder="请输入发行亿"
            clearable
            @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="触发价" prop="resaleTrigPrice">
        <el-input
            v-model="queryParams.resaleTrigPrice"
            placeholder="请输入回售触发价"
            clearable
            @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="回售价" prop="executePriceHs">
        <el-input
            v-model="queryParams.executePriceHs"
            placeholder="请输入回售价"
            clearable
            @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="强赎价" prop="redeemTrigPrice">
        <el-input
            v-model="queryParams.redeemTrigPrice"
            placeholder="请输入强赎价"
            clearable
            @keyup.enter="handleQuery"
        />
      </el-form-item>
      <!--      <el-form-item label="上市日" prop="securityStartDate">-->
      <!--        <el-date-picker clearable-->
      <!--                        v-model="queryParams.securityStartDate"-->
      <!--                        type="date"-->
      <!--                        value-format="YYYY-MM-DD"-->
      <!--                        placeholder="请选择上市日">-->
      <!--        </el-date-picker>-->
      <!--      </el-form-item>-->
      <!--      <el-form-item label="到期日" prop="expireDate">-->
      <!--        <el-date-picker clearable-->
      <!--                        v-model="queryParams.expireDate"-->
      <!--                        type="date"-->
      <!--                        value-format="YYYY-MM-DD"-->
      <!--                        placeholder="请选择到期日">-->
      <!--        </el-date-picker>-->
      <!--      </el-form-item>-->
      <!--      <el-form-item label="最新回售执行日" prop="executeStartDatehs">-->
      <!--        <el-date-picker clearable-->
      <!--                        v-model="queryParams.executeStartDatehs"-->
      <!--                        type="date"-->
      <!--                        value-format="YYYY-MM-DD"-->
      <!--                        placeholder="请选择最新回售执行日">-->
      <!--        </el-date-picker>-->
      <!--      </el-form-item>-->
      <el-form-item>
        <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
        <el-button icon="Refresh" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <!--      <el-col :span="1.5">-->
      <!--        <el-button-->
      <!--            type="primary"-->
      <!--            plain-->
      <!--            icon="Plus"-->
      <!--            @click="handleAdd"-->
      <!--            v-hasPermi="['enterprise:kzz_base:add']"-->
      <!--        >新增-->
      <!--        </el-button>-->
      <!--      </el-col>-->
      <!--      <el-col :span="1.5">-->
      <el-button
          type="success"
          plain
          icon="Edit"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['enterprise:kzz_base:edit']"
      >修改
      </el-button>
      <el-text tag="b" class="mx-1" type="primary">
        &#12288;&#12288;&#12288;&#12288;&#12288;&#12288;投资只关乎一件事：因对未来，没有人能够确切地预知未来，所以风险是不可避免地。投资中如果你能够找到足够多地上涨因素，那么你可能已经在朝着正确地方向前进。但是，如果不能正确地应对风险，那么你的成功是不可能长久的。
      </el-text>
      <!--      </el-col>-->
      <!--      <el-col :span="1.5">-->
      <!--        <el-button-->
      <!--            type="danger"-->
      <!--            plain-->
      <!--            icon="Delete"-->
      <!--            :disabled="multiple"-->
      <!--            @click="handleDelete"-->
      <!--            v-hasPermi="['enterprise:kzz_base:remove']"-->
      <!--        >删除-->
      <!--        </el-button>-->
      <!--      </el-col>-->
      <!--      <el-col :span="1.5">-->
      <!--        <el-button-->
      <!--            type="warning"-->
      <!--            plain-->
      <!--            icon="Download"-->
      <!--            @click="handleExport"-->
      <!--            v-hasPermi="['enterprise:kzz_base:export']"-->
      <!--        >导出-->
      <!--        </el-button>-->
      <!--      </el-col>-->
      <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table stripe
              border
              height="750"
              v-loading="loading"
              :data="kzz_baseList"
              @selection-change="handleSelectionChange"
    >
      <!--      <el-table-column type="selection" width="55" align="center"/>-->
      <!--      <el-table-column fixed label="编号" align="center" prop="id"/>-->
      <el-table-column fixed label="转债名称" align="center" prop="zzName">
        <template #default="scope">
          <el-text tag="b" class="mx-1" type="primary">
            {{
              scope.row.zzName
            }}
          </el-text>
        </template>
      </el-table-column>
      <el-table-column fixed label="代码" align="center" prop="zzCode"/>
      <el-table-column label="现价" align="center" prop="currentBondPricenew">
        <template #default="scope">
          <el-text tag="b" class="mx-1" :type="handleYK(scope.row.currentBondPricenew,0)">{{
              scope.row.currentBondPricenew
            }}
          </el-text>
        </template>
      </el-table-column>
      <el-table-column label="涨跌" align="center" prop="zzZdf">
        <template #default="scope">
          <el-text tag="b" class="mx-1" :type="handleYK(scope.row.zzZdf,0)">
            {{
              scope.row.zzZdf
            }}%
          </el-text>
        </template>
      </el-table-column>
      <el-table-column fixed label="正股" align="center" prop="stockCode">
        <template #default="scope">
          <el-text tag="b" class="mx-1" :type="handleStockCode(parseInt(scope.row.stockCode))">
            {{
              scope.row.stockName
            }}({{ scope.row.stockCode }})
          </el-text>
        </template>
      </el-table-column>
      <el-table-column label="正股价" align="center" prop="stockPrice" width="70"/>
      <el-table-column label="正股涨跌" align="center" prop="stockZdf" width="80">
        <template #default="scope">
          <el-text tag="b" class="mx-1" :type="handleYK(scope.row.stockZdf,0)">
            {{
              scope.row.stockZdf
            }}%
          </el-text>
        </template>
      </el-table-column>
      <el-table-column label="正股PB" align="center" prop="pbvRatio"/>

      <el-table-column label="转股价" align="center" prop="transferPrice" width="70"/>
      <el-table-column label="转股价值" align="center" prop="transferValue" width="80"/>
      <el-table-column label="溢价率" align="center" prop="transferPremiumRatio" width="70">
        <template #default="scope">
          <el-text tag="b" class="mx-1" :type="handleYK(scope.row.transferPremiumRatio,0)">
            {{
              scope.row.transferPremiumRatio
            }}%
          </el-text>
        </template>
      </el-table-column>

      <el-table-column label="纯溢价率" align="center" prop="zzRatio" width="80">
        <template #default="scope">
          <el-text tag="b" class="mx-1" :type="handleYK(scope.row.zzRatio,0)">
            {{
              scope.row.zzRatio
            }}%
          </el-text>
        </template>
      </el-table-column>
      <el-table-column label="纯债价值" align="center" prop="zzPurePriceF424F227" width="80"/>
      <el-table-column label="年限" align="center" prop="bondExpire" width="60"/>
      <el-table-column label="利率" align="center" prop="newrateRefetence" width="60"/>
      <el-table-column label="评级" align="center" prop="rating" width="70"/>
      <el-table-column label="配售额" align="center" prop="firstPerPreplacing" width="70"/>
      <el-table-column label="发行亿" align="center" prop="actualIssueScale" width="70"/>
      <el-table-column label="回触发价" align="center" prop="resaleTrigPrice" width="80"/>
      <el-table-column label="回售价" align="center" prop="executePriceHs" width="70"/>
      <el-table-column label="强赎价" align="center" prop="redeemTrigPrice" width="70"/>
      <el-table-column label="上市日" align="center" prop="securityStartDate" width="80">
        <template #default="scope">
          <span>{{ parseTime(scope.row.securityStartDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="转股日" align="center" prop="transferDateF242" width="80">
        <template #default="scope">
          <span>{{ parseTime(scope.row.transferDateF242, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="到期日" align="center" prop="expireDate" width="80">
        <template #default="scope">
          <span>{{ parseTime(scope.row.expireDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="回执行日" align="center" prop="executeStartDatehs" width="80">
        <template #default="scope">
          <span>{{ parseTime(scope.row.executeStartDatehs, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template #default="scope">
          <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
                     v-hasPermi="['enterprise:kzz_base:edit']">修改
          </el-button>
          <!--                <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"-->
          <!--                           v-hasPermi="['enterprise:kzz_base:remove']">删除-->
          <!--                </el-button>-->
        </template>
      </el-table-column>
    </el-table>

    <pagination
        v-show="total>0"
        :total="total"
        v-model:page="queryParams.pageNum"
        v-model:limit="queryParams.pageSize"
        @pagination="getList"
    />

    <!-- 添加或修改基本资料对话框 -->
    <el-dialog :title="title" v-model="open" width="500px" append-to-body>
      <el-form ref="kzz_baseRef" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="转债名称" prop="zzName">
          <el-input v-model="form.zzName" placeholder="请输入转债名称"/>
        </el-form-item>
        <el-form-item label="代码" prop="zzCode">
          <el-input v-model="form.zzCode" placeholder="请输入代码"/>
        </el-form-item>
        <el-form-item label="现价" prop="currentBondPricenew">
          <el-input v-model="form.currentBondPricenew" placeholder="请输入现价"/>
        </el-form-item>
        <el-form-item label="涨跌" prop="zzZdf">
          <el-input v-model="form.zzZdf" placeholder="请输入涨跌"/>
        </el-form-item>
        <el-form-item label="正股代码" prop="stockCode">
          <el-input v-model="form.stockCode" placeholder="请输入正股代码"/>
        </el-form-item>
        <el-form-item label="正股名称" prop="stockName">
          <el-input v-model="form.stockName" placeholder="请输入正股名称"/>
        </el-form-item>
        <el-form-item label="正股价" prop="stockPrice">
          <el-input v-model="form.stockPrice" placeholder="请输入正股价"/>
        </el-form-item>
        <el-form-item label="正股涨跌" prop="stockZdf">
          <el-input v-model="form.stockZdf" placeholder="请输入正股涨跌"/>
        </el-form-item>
        <el-form-item label="正股PB" prop="pbvRatio">
          <el-input v-model="form.pbvRatio" placeholder="请输入正股PB"/>
        </el-form-item>
        <el-form-item label="转股价" prop="transferPrice">
          <el-input v-model="form.transferPrice" placeholder="请输入转股价"/>
        </el-form-item>
        <el-form-item label="转股价值" prop="transferValue">
          <el-input v-model="form.transferValue" placeholder="请输入转股价值"/>
        </el-form-item>
        <el-form-item label="转股溢价率" prop="transferPremiumRatio">
          <el-input v-model="form.transferPremiumRatio" placeholder="请输入转股溢价率"/>
        </el-form-item>
        <el-form-item label="开始转股日" prop="transferDateF242">
          <el-date-picker clearable
                          v-model="form.transferDateF242"
                          type="date"
                          value-format="YYYY-MM-DD"
                          placeholder="请选择开始转股日">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="纯债溢价率" prop="zzRatio">
          <el-input v-model="form.zzRatio" placeholder="请输入纯债溢价率"/>
        </el-form-item>
        <el-form-item label="纯债价值" prop="zzPurePriceF424F227">
          <el-input v-model="form.zzPurePriceF424F227" placeholder="请输入纯债价值"/>
        </el-form-item>
        <el-form-item label="期限" prop="bondExpire">
          <el-input v-model="form.bondExpire" placeholder="请输入期限"/>
        </el-form-item>
        <el-form-item label="票面利率(当期)" prop="newrateRefetence">
          <el-input v-model="form.newrateRefetence" placeholder="请输入票面利率(当期)"/>
        </el-form-item>
        <el-form-item label="评级" prop="rating">
          <el-input v-model="form.rating" placeholder="请输入评级"/>
        </el-form-item>
        <el-form-item label="每股配售额" prop="firstPerPreplacing">
          <el-input v-model="form.firstPerPreplacing" placeholder="请输入每股配售额"/>
        </el-form-item>
        <el-form-item label="发行亿" prop="actualIssueScale">
          <el-input v-model="form.actualIssueScale" placeholder="请输入发行亿"/>
        </el-form-item>
        <el-form-item label="回售触发价" prop="resaleTrigPrice">
          <el-input v-model="form.resaleTrigPrice" placeholder="请输入回售触发价"/>
        </el-form-item>
        <el-form-item label="回售价" prop="executePriceHs">
          <el-input v-model="form.executePriceHs" placeholder="请输入回售价"/>
        </el-form-item>
        <el-form-item label="强赎价" prop="redeemTrigPrice">
          <el-input v-model="form.redeemTrigPrice" placeholder="请输入强赎价"/>
        </el-form-item>
        <el-form-item label="上市日" prop="securityStartDate">
          <el-date-picker clearable
                          v-model="form.securityStartDate"
                          type="date"
                          value-format="YYYY-MM-DD"
                          placeholder="请选择上市日">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="到期日" prop="expireDate">
          <el-date-picker clearable
                          v-model="form.expireDate"
                          type="date"
                          value-format="YYYY-MM-DD"
                          placeholder="请选择到期日">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="最新回售执行日" prop="executeStartDatehs">
          <el-date-picker clearable
                          v-model="form.executeStartDatehs"
                          type="date"
                          value-format="YYYY-MM-DD"
                          placeholder="请选择最新回售执行日">
          </el-date-picker>
        </el-form-item>
      </el-form>
      <template #footer>
        <div class="dialog-footer">
          <el-button type="primary" @click="submitForm">确 定</el-button>
          <el-button @click="cancel">取 消</el-button>
        </div>
      </template>
    </el-dialog>
  </div>
</template>

<script setup name="Kzz_base">
import {listKzz_base, getKzz_base, delKzz_base, addKzz_base, updateKzz_base} from "@/api/enterprise/kzz_base";
import {handleStockCode, handleYK} from "@/utils/text.js";
import tool from "@/utils/format_number.js";

const {proxy} = getCurrentInstance();

const kzz_baseList = ref([]);
const open = ref(false);
const loading = ref(true);
const showSearch = ref(true);
const ids = ref([]);
const single = ref(true);
const multiple = ref(true);
const total = ref(0);
const title = ref("");

const data = reactive({
  form: {},
  queryParams: {
    pageNum: 1,
    pageSize: 10,
    zzName: null,
    zzCode: null,
    currentBondPricenew: null,
    zzZdf: null,
    stockCode: null,
    stockName: null,
    stockPrice: null,
    stockZdf: null,
    pbvRatio: null,
    transferPrice: null,
    transferValue: null,
    transferPremiumRatio: null,
    transferDateF242: null,
    zzRatio: null,
    zzPurePriceF424F227: null,
    bondExpire: null,
    newrateRefetence: null,
    rating: null,
    firstPerPreplacing: null,
    actualIssueScale: null,
    resaleTrigPrice: null,
    executePriceHs: null,
    redeemTrigPrice: null,
    securityStartDate: null,
    expireDate: null,
    executeStartDatehs: null,
  },
  rules: {}
});

const {queryParams, form, rules} = toRefs(data);

/** 查询基本资料列表 */
function getList() {
  loading.value = true;
  listKzz_base(queryParams.value).then(response => {
    kzz_baseList.value = response.rows;
    total.value = response.total;
    loading.value = false;
  });
}

// 取消按钮
function cancel() {
  open.value = false;
  reset();
}

function tableRowClassName({row, rowIndex}) {
  if (rowIndex === 1) {
    return 'warning-row';
  } else if (rowIndex === 3) {
    return 'success-row';
  }
  return '';
}

// 表单重置
function reset() {
  form.value = {
    id: null,
    zzName: null,
    zzCode: null,
    currentBondPricenew: null,
    zzZdf: null,
    stockCode: null,
    stockName: null,
    stockPrice: null,
    stockZdf: null,
    pbvRatio: null,
    transferPrice: null,
    transferValue: null,
    transferPremiumRatio: null,
    transferDateF242: null,
    zzRatio: null,
    zzPurePriceF424F227: null,
    bondExpire: null,
    newrateRefetence: null,
    rating: null,
    firstPerPreplacing: null,
    actualIssueScale: null,
    resaleTrigPrice: null,
    executePriceHs: null,
    redeemTrigPrice: null,
    securityStartDate: null,
    expireDate: null,
    executeStartDatehs: null,
    createTime: null,
    updateTime: null
  };
  proxy.resetForm("kzz_baseRef");
}

/** 搜索按钮操作 */
function handleQuery() {
  queryParams.value.pageNum = 1;
  getList();
}

/** 重置按钮操作 */
function resetQuery() {
  proxy.resetForm("queryRef");
  handleQuery();
}

// 多选框选中数据
function handleSelectionChange(selection) {
  ids.value = selection.map(item => item.id);
  single.value = selection.length != 1;
  multiple.value = !selection.length;
}

/** 新增按钮操作 */
function handleAdd() {
  reset();
  open.value = true;
  title.value = "添加基本资料";
}

/** 修改按钮操作 */
function handleUpdate(row) {
  reset();
  const _id = row.id || ids.value
  getKzz_base(_id).then(response => {
    form.value = response.data;
    open.value = true;
    title.value = "修改基本资料";
  });
}

/** 提交按钮 */
function submitForm() {
  proxy.$refs["kzz_baseRef"].validate(valid => {
    if (valid) {
      if (form.value.id != null) {
        updateKzz_base(form.value).then(response => {
          proxy.$modal.msgSuccess("修改成功");
          open.value = false;
          getList();
        });
      } else {
        addKzz_base(form.value).then(response => {
          proxy.$modal.msgSuccess("新增成功");
          open.value = false;
          getList();
        });
      }
    }
  });
}

/** 删除按钮操作 */
function handleDelete(row) {
  const _ids = row.id || ids.value;
  proxy.$modal.confirm('是否确认删除基本资料编号为"' + _ids + '"的数据项？').then(function () {
    return delKzz_base(_ids);
  }).then(() => {
    getList();
    proxy.$modal.msgSuccess("删除成功");
  }).catch(() => {
  });
}

/** 导出按钮操作 */
function handleExport() {
  proxy.download('enterprise/kzz_base/export', {
    ...queryParams.value
  }, `kzz_base_${new Date().getTime()}.xlsx`)
}

getList();
</script>

<style scoped>
span {
  word-break: normal;
  width: auto;
  display: block;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow: hidden;
  font-size: 10px; /* 设置表格单元格文字大小 */
}

tr.td.cell {
  word-break: normal;
  width: auto;
  display: block;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow: hidden;
  font-size: 10px; /* 设置表格单元格文字大小 */
}

.cell {
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-all;
  line-height: 23px;
  padding: 0 12px;
  font-size: 8px; /* 设置表格单元格文字大小 */
}

.base-table .el-tag__content {
  word-break: normal;
  width: auto;
  height: 200px;
  display: block;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow: hidden;
  font-size: 6px; /* 设置表格文字大小 */
}

.base-table .el-table__body th {
  font-size: 6px; /* 设置表头文字大小 */
}

.base-table .el-table__body td {
  font-size: 13px; /* 设置表格单元格文字大小 */
}

.el-text {
  font-size: 12px; /* 设置表格单元格文字大小 */
}
</style>